﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Ainimal
    {
        public int cry;
        public string eat;
        public string walk;
        public string sleep;
        public int Cry
        {
            get { return cry; }
            set { value = cry; }
        }
        public virtual void CryHello()
        {
            Console.WriteLine("我准备叫了");
        }
        public string Eat
        {
            get { return eat; }
            set { value = eat; }
        }
        public string Walk
        {
            get { return walk; }
            set { value = walk; }
        }
        public string Sleep
        {
            get { return sleep; }
            set { value = sleep; }
        }
        public virtual void EatHello()
        {
            Console.WriteLine("我可以吃");
        }
        public virtual void WalkHello()
        {
            Console.WriteLine("我可以走");
        }
        public virtual void SleepHello()
        {
            Console.WriteLine("我可以睡觉");
        }
    }
    class Felid : Ainimal
    {
        public virtual void SeeHello()
        {
            Console.WriteLine("我可以在夜间看见东西");
        }
    }
    class Bird : Ainimal
    {
        public virtual void Fly()
        {
            Console.WriteLine("我可以飞");
        }
    }
    class Tager : Felid
    {
        public override void CryHello()
        {
            base.CryHello();
            Console.WriteLine("啊哦哦");
        }
    }
    class Eagle : Bird
    {
        public override void CryHello()
        {
            base.CryHello();
            Console.WriteLine("嘤嘤嘤");
        }
    }
    class PetStore
    {
        public void ConsignAnimal(Ainimal a)
        {
            //寄养宠物
            a.EatHello();
            a.WalkHello();
            a.SleepHello();
            a.CryHello();
        }
    }
    }
